from kivy.app import App
from kivy.uix.button import Button

class MyApp(App):
    def build(self):
        # 创建一个按钮
        return Button(text='Hello, Kivy!')

# 运行应用程序
if __name__ == '__main__':
    MyApp().run()